#!/usr/bin/env node

let msg = 'hello, 王顶';

let utf8 = Buffer.from(msg, 'utf8');
console.log(utf8);

let utf16 = Buffer.from(msg,'utf16');
console.log(utf16);

console.log(utf8.toString('utf8'));
console.log(utf16.toString('utf16'));